//@author A0096566M
#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "SystemKeyboardReadWrite.h"
#include <QLabel>
#include <QScrollBar>

#include "mycompleter.h"



namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

    SystemKeyboardReadWrite syskey;
    bool MainWindow::eventFilter(QObject *object, QEvent *event);

    Taak taak;
    int selectedIndex;
    Cmd* selectedCommand;


public slots:
    void showhide(DWORD key, DWORD flags);
    void enterPressed();
    void textChanged();
    void myslot();

private:

    void mouseMoveEvent(QMouseEvent* event);
    void mousePressEvent(QMouseEvent* event);
    void mouseReleaseEvent(QMouseEvent* event);
    QPoint mLastMousePosition;
    bool mMoving;

    Ui::MainWindow *ui;
    MyLineEdit * te;
    MyCompleter * mcompleter;
    QString prev;
};

#endif // MAINWINDOW_H
